package com.yyr.callmessage.user.object.qo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @Description:
 * @Author：
 * @Date：2021/6/29
 */
@Data
public class RegisterAndLoginUserQo {
    @Pattern(regexp = "^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|" +
            "(18[0-9])|(19[0-3,5-9]))\\d{8}$" , message = "手机号格式不正确")
    private String phone;

    @NotBlank(message = "短信验证码不能为空")
    private String verificationSMS;
}
